//
//  AppListViewController.h
//  LimitFree
//
//  Created by LZXuan on 15-6-8.
//  Copyright (c) 2015年 轩哥. All rights reserved.
//

#import "BaseViewController.h"
#import "AFNetworking.h"

@interface AppListViewController : BaseViewController<UITableViewDataSource,UITableViewDelegate>
{
    UITableView *_tableView;
    NSMutableArray *_dataArr;
    
    //当前页
    NSInteger _currentPage;
    BOOL _isRefreshing;
    BOOL _isLoadMoring;
    
    AFHTTPRequestOperationManager *_manager;
}
@property (nonatomic,strong)UITableView *tableView;
@property (nonatomic,strong)NSMutableArray *dataArr;
@property (nonatomic)NSInteger currentPage;
@property (nonatomic)BOOL isRefreshing;
@property (nonatomic)BOOL isLoadMoring;
//界面url
@property (nonatomic,copy) NSString *requestUrl;
//分类 限免 降价 免费
@property (nonatomic,copy) NSString *category;
//0表示所有
@property (nonatomic,copy) NSString *categoryId;

#pragma mark - 如果不满足子类 那么子类要重写
//第一次下载
- (void)firstDownload;
//增加下载任务
- (void)addTaskUrl:(NSString *)url isRefresh:(BOOL)isRefresh;

//刷新
- (void)creatRefreshView;
//结束刷新
- (void)endRefreshing;

- (void)leftClick:(UIButton *)button;
- (void)rightClick:(UIButton *)button;
@end





